//
//  JsColorManager.m
//
//  Created by Gikki Ares on 2020/12/17.
//

#import "JsColorManager.h"

@implementation JsColorManager

static NSArray * morandiColors = nil;
+ (NSArray *)morandiColors {
	if(!morandiColors) {
		morandiColors = [NSArray array];
	}
	return morandiColors;
}


+ (UIColor *)morandi_red {
	return [UIColor colorMax255WithR:150 g:84 b:84 a:255];
}
+ (UIColor *)morandi_red_iron {
	return [UIColor colorMax255WithR:150 g:80 b:75 a:255];
}

+ (UIColor *)morandi_orange {
	return [UIColor colorMax255WithR:216 g:202 b:175 a:255];
}

+ (UIColor *)morandi_lightGray {
	return [UIColor colorMax255WithR:218 g:218 b:218 a:255];
}

+ (UIColor *)morandi_blue_lightGray{
	return [UIColor colorMax255WithR:188 g:203 b:176 a:255];
}
+ (UIColor *)morandi_blue_sunshine {
	return [UIColor colorMax255WithR:156 g:158 b:137 a:255];
}

+ (UIColor *)morandi_orange_chocolate {
	return [UIColor colorMax255WithR:201 g:145 b:88 a:255];
}


+(BOOL)isColorDark:(UIColor *)color {
	double gray = 0;
	[color getWhite:&gray alpha:nil];
	return gray < 0.75;
}
@end
